|
Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
Cable is the generic cable class with two endpoints. More...
Public Member Functions | |
| Port | getPort1 () |
| Returns the port on the first end of the cable. More... | |
| Port | getPort2 () |
| Returns the port on the second end of the cable. More... | |
| Port | getOtherPort (string, string) |
| Returns the other port based on the specified port on one side of the cable. More... | |
Public Member Functions inherited from Link | |
| CONNECT_TYPES | getConnectionType () |
| Returns the connection type. More... | |
Cable is the generic cable class with two endpoints.
| Port Cable::getOtherPort | ( | string | , |
| string | |||
| ) |
Returns the other port based on the specified port on one side of the cable.
| deviceName,name | of the device (not the IOS name) |
| portName,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
| Port Cable::getPort1 | ( | ) |
Returns the port on the first end of the cable.
| Port Cable::getPort2 | ( | ) |
Returns the port on the second end of the cable.